// 产品条码打印模板
export default {
  panels: [
    {
      index: 0,
      height: 297,
      width: 210,
      paperHeader: 49.5,
      paperFooter: 780,
      printElements: [
        {
          options: {
            left: 60,
            top: 60,
            height: 32,
            width: 120,
            title: '商品条码',
            field: 'barcode',
            testData: '1234567890123',
            fontSize: 12,
            fontWeight: 'bold',
            textAlign: 'center',
            color: '#000000',
          },
          printElementType: {
            type: 'text',
          },
        },
        {
          options: {
            left: 60,
            top: 100,
            height: 60,
            width: 120,
            field: 'barcode',
            testData: '1234567890123',
            fontSize: 10,
          },
          printElementType: {
            type: 'barcode',
          },
        },
        {
          options: {
            left: 60,
            top: 170,
            height: 20,
            width: 120,
            title: '商品名称',
            field: 'name',
            testData: '测试商品',
            fontSize: 10,
            textAlign: 'center',
          },
          printElementType: {
            type: 'text',
          },
        },
      ],
    },
  ],
};
